<?php
/**
 * 退出控制器
 */
namespace Admin\Controller;
use Think\Controller;

class LogoutController extends PublicController {
    //退出登录
    public function index(){
        session('admin_id',null);
        $this->redirect('login/index');
    }

}